# -*- coding: utf-8 -*-

"""
transutils.common, by CloudiDust.
This module contains common functionalities shared by the commands.
"""

import sys

def print_and_exit(text, successful = True):
    out = sys.stdout if successful else sys.stderr
    out.write(text)
    sys.exit(0 if successful else 1)
